package org.ricks.condition1.test;

import org.ricks.condition1.ConditionManager;
import org.ricks.condition1.event.LevelUpEvent;
import org.ricks.ioc.anno.Bean;
import org.ricks.ioc.event.anno.EventReceiver;

@Bean
public class PlayerController {



    @EventReceiver
    public void lvUpgrade (LevelUpEvent levelUpEvent) {
        System.err.println("玩家触发了升级！");
        ConditionManager.me().handleEvent(levelUpEvent);
    }
}
